#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    char n;
    scanf("%c", &n);
    printf("  %c\n", n);
    printf(" %c%c%c\n", n, n, n);
    printf("%c%c%c%c%c\n", n, n, n, n, n);
    printf(" %c%c%c\n", n, n, n);
    printf("  %c\n", n);
    return 0;
}